package com.tedu.bill;

/**
 * Author：毕龙
 * Date: 2024/4/9 20:44
 */
public class Person {
    String name;
    int age;

    public Person(){
        System.out.println("执行构造方法，初始化成员变量");
    }
    public Person(String n,int a){
        name = n;
        age = a;
        System.out.println("执行构造方法，初始化成员变量");
    }

    public void message(){
        System.out.println(name+"今年"+age+"岁");
    }
}
